package com.example.springboot01.conditional;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author keyer
 * @Description : 描述
 * Created by cyd on 2021-05-06 09:51:27
 */
public class TestMain {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(ConditionConfig.class);
        ListService listService = context.getBean(ListService.class);
        System.out.println(context.getEnvironment().getProperty("os.name") +
                "操作系统下的命令为：" +
                listService.showListCmd());
    }
}
